package com.guigu.limeng.controller;

import com.guigu.limeng.pojo.Mdesignproceduremoduledetails;
import com.guigu.limeng.service.MdesignproceduremoduledetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("Mdesignproceduremoduledetails.do")
public class MdesignproceduremoduledetailsController {
    @Autowired
    MdesignproceduremoduledetailsService mdesignproceduremoduledetailsService;

    //limeng
    //把数据添加到产品生产工序物料明细表中
    @RequestMapping("/LM_addWuLiao")
    @ResponseBody
    public int LM_addWuLiao(Mdesignproceduremoduledetails mdesignproceduremoduledetails){
        return mdesignproceduremoduledetailsService.LM_addWuLiao(mdesignproceduremoduledetails);
    }

    @RequestMapping("/limengMdesignproceduremoduledetailsSHCha")
    @ResponseBody
    public List<Mdesignproceduremoduledetails> limengMdesignproceduremoduledetailsSHCha(Integer id){
        return mdesignproceduremoduledetailsService.limengMdesignproceduremoduledetailsSHCha(id);
    }

    @RequestMapping("/limengUpDateChamDesignProcedureModuleDetails")
    @ResponseBody
    public List<Mdesignproceduremoduledetails> limengUpDateChamDesignProcedureModuleDetails(Integer id){
        return mdesignproceduremoduledetailsService.limengMdesignproceduremoduledetailsSHCha(id);
    }

}
